package com.an.framework;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.WebApplicationInitializer;

/**
 * @author Administrator
 *
 *         java 初始化器类
 */
public class MyFilterInitializer implements WebApplicationInitializer {

	private static final Logger logging = LoggerFactory.getLogger(MyFilterInitializer.class);

	/**
	 * shi实现java 过滤器的注册可以在这个方法中完成
	 */
	public void onStartup(ServletContext servletContext) throws ServletException {
		logging.info("注册过滤器--开始");
		logging.info("注册过滤器--结束");
	}
}
